package com.lyz.myself.service.ServiceImpl;

import com.lyz.myself.mapper.ContactsMapper;
import com.lyz.myself.pojo.Po.Contacts;
import com.lyz.myself.service.ContactsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ContactServiceImpl implements ContactsService {
    @Autowired
    private ContactsMapper contactsMapper;

    /**
     * 添加客户同时添加客户首要联系人信息
     */
    @Override
    public int insertContacts(Contacts contacts){
        return contactsMapper.insertContacts(contacts);
    }

    /**
     * 修改客户信息同时修改客户首要联系人信息
     */
    @Override
    public int upadteContacts(Contacts contacts){
        return contactsMapper.upadteContacts(contacts);
    }

}
